<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url value="/resources/jQuery/jquery-1.7.2.min.js" var="jquery"/>
<c:url value="/resources/jQuery/jquery-ui-1.8.21.custom.min.js" var="jqueryUI"/>
<c:url value="/resources/css/cupertino/jquery-ui-1.8.21.custom.css" var="jQueryCSS" />


<script type="text/javascript" src="${jquery}" ></script>
<script type="text/javascript" src="${jqueryUI}" ></script>
<link type="text/css" href="${jQueryCSS}" rel="Stylesheet" />
<div id="createLocalForm" style="display:none">
<form:form method="post" commandName="commandLocation" action="location/addLocation.html">
    <table>
    <tr>
        <td><form:label path="contactID">Contact</form:label></td>
        <td><form:select path="contactID">
            <form:option value="0" label="--- Select ---" />
            <form:options itemLabel="fullName" itemValue="contactID" items="${contacts}" />
            </form:select></td>
    </tr>
    <tr>
        <td><form:label path="street">Street</form:label></td>
        <td><form:input path="street" /></td>
    </tr>
    <tr>
        <td><form:label path="city">City</form:label></td>
        <td><form:input path="city" /></td>
    </tr>
    <tr>
        <td><form:label path="zipCode">Zip Code</form:label></td>
        <td><form:input path="zipCode" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <input type="submit" value="Add Location"/>
        </td>
    </tr>
</table> 
     
</form:form>
</div>